package com.linzm.structuraltype.bridge02;

import com.linzm.structuraltype.bridge02.drawapi.GreenCircle;
import com.linzm.structuraltype.bridge02.drawapi.RedCircle;
import com.linzm.structuraltype.bridge02.shape.Circle;
import com.linzm.structuraltype.bridge02.shape.Shape;

/**
 * @Author zimingl
 * @Date 2023/4/16 0:10
 * @Description: BridgePatternDemo
 */
public class BridgePatternDemo {
    public static void main(String[] args) {
        Shape redCircle = new Circle(100,100, 10, new RedCircle());
        Shape greenCircle = new Circle(100,100, 10, new GreenCircle());

        redCircle.draw();
        greenCircle.draw();
    }
}
